package com.tc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Customer对象", description = "用户对象")
public class Customer implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "逻辑删除标记（0：未删除，1：已删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "客户姓名")
    private String customerName;

    @ApiModelProperty(value = "年龄")
    private Integer customerAge;

    @ApiModelProperty(value = "性别 0：男，1：女")
    private Integer customerSex;

    @ApiModelProperty(value = "身份证号")
    private String idcard;

    @ApiModelProperty(value = "房间号")
    private String roomNo;

    @ApiModelProperty(value = "所属楼房")
    private String buildingNo;

    @ApiModelProperty(value = "入住时间")
    private Date checkinDate;

    @ApiModelProperty(value = "合同到期时间")
    private Date expirationDate;

    @ApiModelProperty(value = "联系电话")
    private String contactTel;

    @ApiModelProperty(value = "床号")
    private Integer bedId;

    @ApiModelProperty(value = "身心状况")
    @TableField("psychosomatic_state")  // 明确指定数据库字段名
    private String psychosomaticStatus;

    @ApiModelProperty(value = "注意事项")
    private String attention;

    @ApiModelProperty(value = "出生日期")
    private Date birthday;

    @ApiModelProperty(value = "身高")
    private String height;

    @ApiModelProperty(value = "体重")
    private String weight;

    @ApiModelProperty(value = "血型")
    private String bloodType;

    @ApiModelProperty(value = "头像路径")
    @TableField("filepath") // 明确指定数据库字段名为filepath
    private String filePath;

    @ApiModelProperty(value = "关联系统健康管家(护工)")
    private Integer userId;

    @ApiModelProperty(value = "护理等级")
    private Integer levelId;

    @ApiModelProperty(value = "家属")
    private String familyMember;

}
